home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8967 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  919 b 

  1. Path: news.bridge.net!news
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Class problem
  5. Date: 27 Feb 1996 17:22:08 GMT
  6. Organization: self-employed
  7. Message-ID: <4gvek0$cj8@news.bridge.net>
  8. References: <4gv6j2$klv@news-e2b.gnn.com>
  9. NNTP-Posting-Host: ppp-mia2-71.bridge.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15.  
  16.  
  17. >>>>>>>>
  18.  
  19.   cin >> addr.zip;
  20.   cin >> addr.phone;
  21.  
  22.  
  23.    int zip[11];
  24.    int phone[10];
  25.  
  26. <<<<<<<<<<<
  27.  
  28.  
  29.    You don't understand what an int actually is, in physical terms.  It 
  30. is not a little box for holding one digit of a number; it is a rather 
  31. large box for holding entire numbers of several digits (perhaps 5 or 10).
  32. cin does not understand arrays of int, only single ints.
  33.  
  34.    You need to change these arrays to char, is my opinion. 
  35.  
  36.  
  37.                      David
  38.  
  39.  
  40.